package com.wh.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wh.pojo.BasePojo;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@TableName("rights")
@Data
@Accessors(chain = true)
public class Rights extends BasePojo {
    private Integer id;                 //序号
    private String name;                //选项名
    private Integer parentId;           //父id
    private String path;                //url路径
    private Integer level;              //选项等级
    @TableField(exist = false)
    private List<Rights> children; //不是表格固有属性
}

